package cn.cloud.all.security.access;

import cn.cloud.all.security.authentication.exception.InsufficientAuthenticationException;
import cn.cloud.all.security.core.Authentication;

import java.util.Collection;

public interface AccessDecisionManager {

    void decide(Authentication authentication, Object object, Collection<ConfigAttribute> configAttributes) throws AccessDeniedException, InsufficientAuthenticationException;

    boolean supports(ConfigAttribute attribute);

    boolean supports(Class<?> clazz);
}
